package com.yp.lession73.entity;

import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.ListContainer;

import java.util.ArrayList;
import java.util.List;

/**
 * 城市实体类
*/
public class City {
    private String cityName;
    //ListContainer
    List<City> c = new ArrayList<>();
    public City() {
    }
    City getData(){
        return new City();
    }
    public City(String cityName) {
        this.cityName = cityName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Override
    public String toString() {
        return "City{" +
                "cityName='" + cityName + '\'' +
                ", c=" + c +
                '}';
    }
}
